// 把search字符串转为对象
export const searchToObject = searchString => {
  let ret = {}
  let search = new URLSearchParams(searchString)
  for (let [key, value] of search.entries()) {
    ret[key] = value
  }
  return ret
}
